<template>
  <view :style="'height:'+stateBarHeight+'px '+'background-color:'+backgroundColor"></view>
</template>

<script>
export default {
name: "top-hight",
  props:{
    backgroundColor:{
      type:String,
      default:"#fff"
    }
  },
  data(){
  return{
    stateBarHeight:0,
  }
  },
  mounted() {
    this.stateBarHeight = this.$store.state.stateBarHeight;
  },

}
</script>

<style lang="scss" scoped>

</style>
